#ifndef _MYNET_H
#define _MYNET_H

#define MYCMD_LOGIN 1
#define MYCMD_REG 2

typedef struct{
	char head;
	char cmd;
	char username[20];
	char passwd[20];
	char end;
}msg_send_t;

typedef struct{
	char head;
	char ret;
	char errmsg[50];
	char end;
}msg_ret_t;


void msg_send_init(msg_send_t* msg, char cmd, char* username,char* passwd);
void msg_ret_init(msg_ret_t* msg);

#endif
